package com.studyv3.test.controller;



import com.studyv3.common.core.controller.BaseController;
import com.studyv3.common.core.page.PageQuery;
import com.studyv3.common.core.page.TableDataInfoPlus;
import com.studyv3.test.domain.bo.StudyBookTypesBo;
import com.studyv3.test.domain.vo.StudyBookTypesVo;
import com.studyv3.test.service.IStudyBookTypesService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
/**
 * (StudyBookTypes)表控制层
 *
 * @author makejava
 * @since 2024-04-25 16:00:54
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/test/book/book_types")
public class StudyBookTypesController extends BaseController {
    /**
     * 服务对象
     */

    private final IStudyBookTypesService studyBookTypesService;

    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("/list")
    public TableDataInfoPlus<StudyBookTypesVo> list(StudyBookTypesBo bo, PageQuery pageQuery) {
        return studyBookTypesService.queryPageList(bo, pageQuery);
    }

//    /**
//     * 通过主键查询单条数据
//     *
//     * @param id 主键
//     * @return 单条数据
//     */
//    @GetMapping("{id}")
//    public R selectOne(@PathVariable Serializable id) {
//        return success(this.studyBookTypesService.getById(id));
//    }
//
//    /**
//     * 新增数据
//     *
//     * @param studyBookTypes 实体对象
//     * @return 新增结果
//     */
//    @PostMapping
//    public R insert(@RequestBody StudyBookTypes studyBookTypes) {
//        return success(this.studyBookTypesService.save(studyBookTypes));
//    }
//
//    /**
//     * 修改数据
//     *
//     * @param studyBookTypes 实体对象
//     * @return 修改结果
//     */
//    @PutMapping
//    public R update(@RequestBody StudyBookTypes studyBookTypes) {
//        return success(this.studyBookTypesService.updateById(studyBookTypes));
//    }
//
//    /**
//     * 删除数据
//     *
//     * @param idList 主键结合
//     * @return 删除结果
//     */
//    @DeleteMapping
//    public R delete(@RequestParam("idList") List<Long> idList) {
//        return success(this.studyBookTypesService.removeByIds(idList));
//    }
}

